<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>添加类型属性</title>
	<hdjs/>

</head>
<body>
	<div class='wrap'>
		<div class='menu_list'>
			<ul>
				<li>
					<a href="{|U:'index'}">属性列表</a>
				</li>
		</ul>
		</div>
		<form action="" method='post'>
			<div class='title-header'>添加属性</div>
			<table class='table1 hd-form'>
				<tr>
					<th>商品类型</th>
					<td>
						<select name="cat_id" id="">
							<list from='$goods_type' name='$gt'>
							<option value="{$gt.cat_id}" <if value="$gt.cat_id == Q('cat_id')">selected=""</if>>
								{$gt.cat_name}
							</option>	
						</list>
						</select>
					</td>
				</tr>
				<tr>
					<th class='w80'>属性名称</th>
					<td>
					<input type="text" name='attr_name' class='w200'>
					</td>
				</tr>
				<tr>
					<th>属性类型</th>
					<td>
						<label>
							<input type="radio" name='attr_type' value='1' checked=""> 普通属性
						</label>
						<label>
							<input type="radio" name='attr_type' value='2' > 规格属性
						</label>
						<span class='hd-message'>
							普通属性只能录入值，规格属性可以设置价格比如颜色、尺码
						</span>
					</td>
				</tr>
				<tr>
					<th>录入方式</th>
					<td>
						<label>
							<input type="radio" name='attr_input_type' value='1' checked="" > 文本输入
						</label>
						<label>
							<input type="radio" name='attr_input_type' value='2' > 下拉列表框
						</label>
						<label>
							<input type="radio" name='attr_input_type' value='3' > 文本框
						</label>
						<span class='hd-message'>
							选择下拉列表框时必须输入默认值
						</span>
					</td>
				</tr>
				<tr>
					<th>属性值</th>
					<td>
						<textarea name="attr_value" class="w200 h100" disabled=""></textarea>
						一行输入一个值
					</td>
				</tr>
			</table>
			<input type="submit" class='hd-success' value='添加'/>
	</form>
	</div>
	<js file='__CONTROLLER_VIEW__/Js/js.js'/>
</body>
</html>